package com.lotusfall.service;

import com.github.pagehelper.PageInfo;
import com.lotusfall.pojo.User;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


public interface UserService{
    User selectUserByUsername(String username);

    int addUser(User user);

    List<User> queryAll();

    User getCurrentUser();

    PageInfo<User> queryUserList(Integer page,Integer pageSize);

    int setUserAvatar(String username, String url);

    User getUserById(Long id);

}
